package com.example.controller;


import com.example.producer.Sender;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.sql.Time;
import java.time.LocalDateTime;

@RestController
public class DemoController {

    @Autowired
    Sender sender;


    @RequestMapping(value = "/sayHello", method = RequestMethod.GET)
    public boolean sayHello(@RequestParam("quequ") String quequ, @RequestParam("str") String str) {
        sender.send(quequ, str);
        return true;
    }
}



